* {
    margin: 0;
    padding: 0;
}

.w {
    width: 1200px;
    margin: auto;
}
body {
    background-color: #f3f5f7;
    height: 3000px;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

.header {
    height: 42px;
    /* background-color: pink; */
    margin: 30px auto;
}

.logo {
    float: left;
    width: 198px;
    height: 42px;
    background-color: #fff;
}

.nav {
    float: left;
    margin-left: 60px;
}

.nav ul li {
    float: left;
    margin: 0 15px;
}

.nav ul li a {
    display: block;
    height: 42px;
    padding: 0 10px;
    line-height: 42px;
    font-size: 18px;

    color: #050505;
}

.nav ul li a:hover {
    border-bottom: 2px solid #00a4ff;
    color: #00a4ff;
}

/* search搜索模块 */
.search {
    float: left;
    width: 412px;
    height: 41px;
    background-color: skyblue;
    margin-left: 50px;
}

.search input {
    float: left;
    width: 345px;
    height: 40px;
    border: 1px solid #00a4ff;
    border-right: 0px;
    color: pink;
    font-size: 14px;
    padding-left: 15px;
}

.search button {
    float: left;
    width: 51px;
    height: 42px;
    background: url(fa-search.png);
    /* 按钮button默认有个边框需要我们手动去掉 */
    border: 0;
}

.user {
    float: right;
    line-height: 42px;
    margin-right: 30px;
    font-size: 14px;
    color: #666666;
}

/* banner区域 */
.banner {
    height: 421px;
    background-color: #1c036c;
}

/* 版心 */
.banner .w {
    height: 421px;
    background: url(banner2.png) no-repeat top center;
}

.subnav {
    float: left;
    width: 190px;
    height: 421px;
    background-color: rgb(0, 0, 0, 0.3);
}

.subnav ul li {
    height: 45px;
    line-height: 45px;
    padding: 0 20px;
}

.subnav ul li a {
    font-size: 14px;
    color: #fff;
}

.subnav ul li a span {
    float: right;
}

.subnav ul li a:hover {
    color: #00a4ff;

}

.course {
    float: right;
    width: 230px;
    height: 300px;
    background-color: #fff;
    /* 浮动的盒子不会有外边距合并的问题 */
    margin-top: 50px;
}

.course h2 {
    height: 48px;
    background-color: #9bceea;
    text-align: center;
    line-height: 48px;
    font-size: 18px;
    color: #fff;
}

.bd {
    padding: 0 20px;
}

.bd li {
    padding: 14px 0;
    border-bottom: 1px solid #cccccc;
}

.bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
}

.bd ul li p {
    font-size: 12px;
    color: #a5a5a5;
}

.bd .more {
    display: block;
    height: 38px;
    border: 1px solid #00a4ff;
    text-align: center;
    line-height: 38px;
    color: #00a4ff;
    font-size: 16px;
    font-weight: 700;
    margin-top: 5px;
}

/* 精品推荐模块 */
.goods {
    height: 60px;
    background-color: #fff;
    margin-top: 10px;
    box-shadow: 0 2px 3px 3px rgba(0, 0, 0, 0.1);
    /* 行高会继承 */
    line-height: 60px;
}

.goods h3 {
    float: left;
    margin-left: 30px;
    font-size: 16px;
    color: #00a4ff;
}

.goods ul {
    float: left;
    margin-left: 30px;
}

.goods ul li {
    float: left;
}

.goods ul li a {
    padding: 0 30px;
    font-size: 16px;
    color: #050505;
    border-left: 1px solid #cccccc;
}

.goods .mod {
    float: right;
    margin-right: 30px;
    font-size: 14px;
    color: #00a4ff;
}
.box {
    margin-top: 30px;
}
.box-hd {
    height: 45px;
    line-height: 45px;
}
.box-hd h3 {
    float: left;
    font-size: 20px;
    color: #494949;
}
.box-hd a {
    float: right;
    font-size: 12px;
    color: #a5a5a5;
    /* margin-top: 10px; */
    margin-right: 30px;
}
.box-bd ul li {
    float: left;
    width: 228px;
    height: 270px;
    background-color: #fff;
    margin-right: 15px;
    margin-bottom: 15px;

}
.box-bd ul {
    width: 1225px;
}
.box-bd ul li img {
    width: 100%;
}
.box-bd ul li h4 {
    margin: 20px 20px 20px 25px;
    font-size: 14px;
    color: #050505;
    font-weight: normal;
}
.box-bd .info {
    margin: 0 20px 0 25px;
    font-size: 12px;
    color: #999;

}
.box-bd .info span {
    color: #ff7c2d;
}
/* 编程入门模块开始 */

.box-nav {
    float: left;
    height: 60px;
    line-height: 60px;
    width: 373px;
    padding: 0 300px;
    
}

.box1 .box-hd .box-nav li{
    float: left;
}
.box1 .box-hd .box-nav li a{
    font-size: 16px;
    margin: 0 30px;
}
.box1 .box-hd .box-nav li a:hover {
    color: #00a4ff;
}
.box1 .box1-bd .left {
    float: left;
    width: 229px;
    height: 392px;
}
.box1 .box1-hd .left img {
    width: 100%;
    height: 100%;
}
.box1 .box1-bd .right>div {
    float: right;
    width: 958px;
    height: 100px;
}
.box1 .box1-bd .right div img {
    width: 100%;
    height: 100%;
}
.smallbox {
    float: left;
    margin-top: 22px;
    margin-left: 14.5px;
    width: 228px;
    height: 269px;
    background-color: #ffff;
}
.smallbox a {
  margin-left: 25px;
    font-size: 14px;
    color: #050505;
}
.clearfix div {
    width: 229px;
    height: 71px;
    font-size: 12px;
    color: #999;
    line-height: 71px;
     margin-left: 25px;
    
}
.clearfix div span {
    color:#ff7c2d;
}